include $(GNUSTEP_MAKEFILES)/common.make

FRAMEWORK_NAME = AppKit

$(FRAMEWORK_NAME)_OBJCFLAGS = -IHeaders -I../ -DLINUX -fcocotron-runtime -fblocks -I/usr/include/freetype2/ -I/usr/include/fontconfig/ -I/usr/include/cairo/  
$(FRAMEWORK_NAME)_OBJCFLAGS += -I$(ROOT)/ApplicationServices-opal/Headers -I$(ROOT)/AppKit/Headers -I$(ROOT)/Foundation/Headers
$(FRAMEWORK_NAME)_LDFLAGS+=$(LIBSYSTEM) $(LIBOBJC) $(FOUNDATION_FRAMEWORK) $(APPLICATIONSERVICES_FRAMEWORK) $(QUARTZCORE_FRAMEWORK)

$(FRAMEWORK_NAME)_LDFLAGS+= -lX11 -lfontconfig -lGL -lfreetype -lcairo

AppKit_HEADER_FILES_DIR = Headers/AppKit 

#CoreData_/NSPersistentDocument.m \
#CoreData_/_NSManagedProxy.m \

AppKit_OBJC_FILES = \
NSRulerView.m \
NSSpellChecker.m \
NSTreeNode.m \
NSPageLayout.m \
NSSheetContext.m \
NSViewBackingLayer.m \
NSImageRep.m \
NSPathComponentCell.m \
NSKeyValueBinding/NSTextFieldBinder.m \
NSKeyValueBinding/NSCachingBinder.m \
NSKeyValueBinding/NSKVOBinder.m \
NSKeyValueBinding/NSMultipleValueBinder.m \
NSKeyValueBinding/NSBinder.m \
NSKeyValueBinding/NSTextBinder.m \
NSKeyValueBinding/NSObject+BindingSupport.m \
NSStringDrawing.m \
NSGradient.m \
NSBitmapImageRep.m \
NSPrinter.m \
NSColorPicker.subproj/NSColorPicker.m \
NSColorPicker.subproj/NSColorPickerColorList.m \
NSColorPicker.subproj/NSBrowserCellColorList.m \
NSColorPicker.subproj/NSColorPickerSliders.m \
NSMutableParagraphStyle.m \
NSPasteboard.m \
NSComboBoxView.m \
NSButton.m \
RTF.subproj/NSRichTextWriter.m \
RTF.subproj/NSRichTextReader.m \
NSDatePickerCell.m \
NSPDFImageRep.m \
NSColorWell.m \
NSRuleEditorButtonCell.m \
NSFormCell.m \
NSInterfacePart/NSInterfaceGraphics.m \
NSInterfacePart/NSGraphicsStyle.m \
NSInterfacePart/NSInterfacePart.m \
NSInterfacePart/NSInterfacePartAttributedString.m \
NSInterfacePart/NSInterfacePartDisabledAttributedString.m \
NSTableCornerView.m \
NSAlert.m \
NSImage.m \
NSProgressIndicator.m \
NSOpenPanel.m \
NSModalSessionX.m \
NSTabView.m \
NSRulerMarker.m \
NSButtonCell.m \
NSPrintOperation.m \
NSImageCell.m \
NSFileWrapper.m \
NSDockTile.m \
NSText.m \
NSBezierPath.m \
NSColorList.m \
NSFontPanelCell.m \
NSSplitView.m \
NSSystemInfoPanel/NSSystemInfoPanel.m \
NSDisplay.m \
NSScrollView.m \
NSStatusBar.m \
NSTrackingArea.m \
NSSound.m \
NSWindowAnimationContext.m \
NSSearchFieldCell.m \
NSWindowController.m \
NSParagraphStyle.m \
NSSavePanel.m \
NSCell.m \
NSDatePicker.m \
NSDocument.m \
NSAttributedString.m \
NSEPSImageRep.m \
NSDraggingManager.m \
NSComboBoxWindow.m \
NSToolbar.subproj/NSToolbarCustomizationView.m \
NSToolbar.subproj/NSToolbarItem.m \
NSToolbar.subproj/NSToolbarItemView.m \
NSToolbar.subproj/NSToolbarView.m \
NSToolbar.subproj/NSToolbar.m \
NSToolbar.subproj/NSToolbarItemGroup.m \
NSToolbar.subproj/NSToolbarCustomizationPalette.m \
NSStringDrawer.m \
NSOutlineView.m \
NSAccessibility.m \
NSPopUpWindow.m \
NSSecureTextField.m \
NSDocumentController.m \
NSTextAttachmentCell.m \
NSInterfaceStyle.m \
NSStepperCell.m \
NSRuleEditorViewSliceRow.m \
NSTextList.m \
NSShadow.m \
NSCIImageRep.m \
NSScroller.m \
NSToolTipWindow.m \
NSFontPanel.m \
NSGlyphInfo.m \
NSScreen.m \
NSTextFieldCell.m \
NSWindow-Drag.m \
NSColorSpace.m \
NSFontDescriptor.m \
NSMeasurementUnit.m \
NSPopUpView.m \
NSResponder.m \
NSPathCell.m \
NSSlider.m \
NSColor.subproj/NSColor_catalog.m \
NSColor.subproj/NSColor.m \
NSColor.subproj/NSColor_CGColor.m \
NSAffineTransform.m \
NSThemeFrame.m \
NSPrintInfo.m \
NSPredicateEditor.m \
NSSecureTextFieldCell.m \
NSCollectionView/NSCollectionView.m \
NSCollectionView/NSCollectionViewItem.m \
NSKeyboardBinding/NSKeyboardBindingManager.m \
NSKeyboardBinding/NSKeyboardBinding.m \
NSMenu.subproj/NSMenuWindow.m \
NSMenu.subproj/NSMenuItem.m \
NSMenu.subproj/NSSubmenuView.m \
NSMenu.subproj/NSMainMenuView.m \
NSMenu.subproj/NSMenu.m \
NSMenu.subproj/NSMenuView.m \
NSMenu.subproj/NSOverflowMenuView.m \
NSTokenField.m \
NSHelpManager.m \
NSCellUndoManager.m \
NSPrintPanel.m \
NSComboBoxCell.m \
_NSRuleEditorViewSliceHolder.m \
NSImageView.m \
NSWindowScripting.m \
NSLevelIndicatorCell.m \
NSTableHeaderCell.m \
NSFont.m \
NSStepper.m \
NSTextTable/NSTextBlock.m \
NSTextTable/NSTextTable.m \
NSTextTable/NSTextTableBlock.m \
NSCursor.m \
NSComboBox.m \
NSTableColumn.m \
NSCustomImageRep.m \
NSFontManager.m \
NSMatrix.m \
nib.subproj/NSNib.m \
nib.subproj/NSNibControlConnector.m \
nib.subproj/NSNibLoading.m \
nib.subproj/NSButtonImageSource.m \
nib.subproj/NSClassSwapper.m \
nib.subproj/NSNibBindingConnector.m \
nib.subproj/NSNibAXRelationshipConnector.m \
nib.subproj/NSIBObjectData.m \
nib.subproj/NSNibHelpConnector.m \
nib.subproj/NSWindowTemplate.m \
nib.subproj/NSCustomObject.m \
nib.subproj/NSCustomView.m \
nib.subproj/NSCustomResource.m \
nib.subproj/NSNibOutletConnector.m \
nib.subproj/NSNibConnector.m \
NSBrowserCell.m \
NSCursorRect.m \
NSFontTypeface.m \
NSBox.m \
NSGraphicsContext.m \
NSTokenFieldCell.m \
NSRuleEditor.m \
NSSliderCell.m \
NSGraphics.m \
NSAlertPanel.m \
NSClipView.m \
NSStatusItem.m \
NSActionCell.m \
NSWorkspace.m \
NSTableHeaderView.m \
NSTextAttachment.m \
NSPredicateEditorRowTemplate.m \
NSLevelIndicator.m \
NSTokenAttachmentCell.m \
NSGlyphGenerator.m \
NSViewController.m \
NSPopUpButtonCell.m \
NSSearchField.m \
NSControl.m \
NSMutableAttributedString.m \
NSTableView.m \
NSPathControl.m \
NSAnimation/NSAnimationContext.m \
NSAnimation/NSAnimation.m \
NSAnimation/NSViewAnimation.m \
NSController/NSControllerSelectionProxy.m \
NSController/NSUserDefaultsController.m \
NSController/NSUserDefaultsControllerProxy.m \
NSController/NSObservationProxy.m \
NSController/NSObjectController.m \
NSController/NSDictionaryController.m \
NSController/NSControllerMarker.m \
NSController/NSTreeController.m \
NSController/_NSControllerArray.m \
NSController/NSController.m \
NSController/NSArrayController.m \
NSSegmentedControl/NSSegmentedCell.m \
NSSegmentedControl/NSSegmentItem.m \
NSSegmentedControl/NSSegmentedControl.m \
NSTextField.m \
NSFontFamily.m \
NSBrowser.m \
NSTextView.subproj/NSTextView.m \
NSTextView.subproj/NSSecureTextView.m \
NSTextView.subproj/NSTextViewSharedData.m \
NSTextView.subproj/NSRangeArray.m \
NSTextView.subproj/NSTextContainer.m \
NSTextView.subproj/NSTypesetter.m \
NSTextView.subproj/NSTypesetter_concrete.m \
NSTextView.subproj/NSTextTab.m \
NSTextView.subproj/NSSecureLayoutManager.m \
NSColorPanel.m \
NSPopUpButton.m \
NSFontMetric.m \
NSTabViewItem.m \
NSForm.m \
NSTextView.subproj/NSTextStorage_concrete.m \
NSTextView.subproj/NSTextStorage.m \
NSTextView.subproj/NSLayoutManager.m \
NSDrawer.subproj/NSDrawerWindow.m \
NSDrawer.subproj/NSDrawer.m \
NSApplication.m \
NSView.m \
NSWindow.m \
NSEvent.subproj/NSEvent_periodic.m \
NSEvent.subproj/NSEvent_CoreGraphics.m \
NSEvent.subproj/NSEvent_mouse.m \
NSEvent.subproj/NSEvent_other.m \
NSEvent.subproj/NSEvent_keyboard.m \
NSEvent.subproj/NSEvent.m \
X11.subproj/X11Event.m \
NSOpenGL/NSOpenGLDrawable.m \
NSOpenGL/NSOpenGLContext.m \
NSOpenGL/NSOpenGLView.m \
NSOpenGL/NSOpenGLPixelFormat.m \
NSOpenGL/NSOpenGLPixelBuffer.m \
NSPanel.m \
NSCachedImageRep.m \
dummy.m \
X11.subproj/X11Window.m \
X11.subproj/X11Display.m \
X11.subproj/CTFont.m \
X11.subproj/KTFont.m \
X11.subproj/KTFont_FT.m \

#broken onyx
#X11.subproj/O2Context_builtin_FT.m
#X11.subproj/O2Context_cairo.m \
#X11.subproj/CGLContext.m \
#X11.subproj/NSOpenGLDrawable_X11.m \
#
#X11.subproj/O2Font_FT.m \
#X11.subproj/O2FontState_cairo.m \
#X11.subproj/O2Surface_cairo.m \


include $(GNUSTEP_MAKEFILES)/framework.make

